//
//  UIButton+Extend.m
//  CoreAnimation
//
//  Created by LG on 2018/5/17.
//  Copyright © 2018年 iqiyi. All rights reserved.
//

#import "UIButton+Extend.h"
#import <objc/runtime.h>

@implementation UIButton (Extend)

- (void)setIdentifier:(NSString *)identifier
{
    objc_setAssociatedObject(self, @selector(identifier), identifier, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString *)identifier
{
    NSString *str = objc_getAssociatedObject(self, @selector(identifier));
    
    return str;
}

@end
